package com.xjl.app.convert;

import com.xjl.app.EntityDTO.StationDTO;
import com.xjl.app.domain.EntityDO.StationDO;
import com.xjl.app.infra.entity.Station;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface StationDTODOConcert {

    StationDTODOConcert INSTANCE = Mappers.getMapper(StationDTODOConcert.class);

    Station toStation(StationDTO stationDTO);
    Station toStation(StationDO stationDO);

    StationDO toStationDO(StationDTO stationDTO);
    StationDTO toStationDTO(StationDO stationDO);
    StationDTO toStationDTO(Station station);

}
